<template>
	<view>
		<view class="title1" v-if="item.titleStyle == 1"
			:style="{textAlign:item.style.textAlign,paddingTop:`${item.style.paddingTop}px`,paddingBottom:`${item.style.paddingBottom}px`,marginTop:`${item.style.marginTop}px`,marginBottom:`${item.style.marginBottom}px`,fontSize:`${item.style.fontSize}px`,color:item.style.color,backgroundColor:item.style.backgroundColor}">
			{{item.titleTxt}}
		</view>
		<view class="title2" v-if="item.titleStyle == 2">
			<view class="box"></view>
			<view
				:style="{paddingTop:`${item.style.paddingTop}px`,paddingBottom:`${item.style.paddingBottom}px`,marginTop:`${item.style.marginTop}px`,marginBottom:`${item.style.marginBottom}px`,fontSize:`${item.style.fontSize}px`,color:item.style.color,backgroundColor:item.style.backgroundColor}">
				{{item.titleTxt}}
			</view>
		</view>
		<view class="title3" v-if="item.titleStyle == 3">
			<view class="lnke"></view>
			<view
				:style="{paddingTop:`${item.style.paddingTop}px`,paddingBottom:`${item.style.paddingBottom}px`,marginTop:`${item.style.marginTop}px`,marginBottom:`${item.style.marginBottom}px`,fontSize:`${item.style.fontSize}px`,color:item.style.color,backgroundColor:item.style.backgroundColor}">
				{{item.titleTxt}}
			</view>
		</view>
		<view class="title4" v-if="item.titleStyle == 4">
			<view
				:style="{paddingTop:`${item.style.paddingTop}px`,paddingBottom:`${item.style.paddingBottom}px`,marginTop:`${item.style.marginTop}px`,marginBottom:`${item.style.marginBottom}px`,fontSize:`${item.style.fontSize}px`,color:item.style.color,backgroundColor:item.style.backgroundColor}">
				{{item.titleTxt}}
			</view>
			<view class="lnke"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		props: {
			item: {
				type: Object,
				default: {}
			}
		},
	}
</script>

<style lang="less">
	page {
		font-weight: 600;
	}

	.title1 {
		padding: 20rpx;
	}

	.title2 {
		display: flex;
		padding: 20rpx;

		.box {
			width: 14rpx;
			height: 14rpx;
			background-color: blue;
			border-radius: 20rpx;
			margin-top: 4%;
			margin-right: 20rpx;
		}
	}
	.title3{
		display: flex;
		padding: 20rpx;
		.lnke {
			width: 10rpx;
			height: 42rpx;
			margin-top: 2.5%;
			background-color: blue;
			border-radius: 20rpx;
			margin-right: 20rpx;
		}
	}
	.title4 {
		padding: 20rpx;
		text-align: center;

		.lnke {
			width: 120rpx;
			height: 6rpx;
			margin: 0 auto;
			background-color: blue;

		}
	}
</style>
